package com.util.living;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * <p>
 *     living模块的七牛云前缀地址
 * </p>
 * @author 大忽悠
 * @create 2022/2/11 19:11
 */
@Component
public class LivingQiNiuYunUtils {
    /**
     * 对象存储域名
     */
    @Value("${qiNiu.living.url}")
    public String URL;

    public static String url;
    /**
     * 使用哪个桶存放资源
     */
    @Value("${qiNiu.living.bucketName}")
    private  String bucketName;

    /**
     * @return 返回文件前缀
     */
    public  String getLivingFilePrefix()
    {
        return URL+"/";
    }

    @Value("${qiNiu.living.url}")
    public void setURL(String url) {
        LivingQiNiuYunUtils.url = url;
    }
}
